package com.brick.service;

import com.brick.entity.Commodity;
import com.brick.mapper.CommodityMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CommodityService {
    @Autowired
    CommodityMapper commodityMapper;

    public List<Commodity> selectAll(Commodity commodity){
        return commodityMapper.selectAll(commodity);
    }

    public int insert(Commodity commodity){
        return commodityMapper.insert(commodity);
    }

    public int update(Commodity commodity){
        return commodityMapper.update(commodity);
    }
}
